<div class="perinfo">
    <div class="logobox">
        <img bind-src="{{loginer.logo||'/images/userhead.jpg'}}">
        <div>
            <button event-click="{{'$Event.file_btn_click'}}">更换头像</button>
            <input id="logofile" type="file" style="display:none" event-change="{{'$Event.user_logo_change'}}" />
        </div>
    </div>

    <div class="infobox {{$Cache_unlock_change_info&&'focus'}}">
        <div class="item">{{loginer.nickname}}</div>
        <div class="line"></div>
        <div class="item">{{loginer.phone}}</div>
        <div class="line"></div>
        <div class="item">{{loginer.email}}</div>
        <div class="line"></div>
        <div class="item">{{loginer.sex==1&&'男'||'女'}}</div>
        <div class="line"></div>
        <div class="item">{{loginer.address.province+","+loginer.address.city+loginer.address.area}}</div>
        <div class="line"></div>
        <div class="item">{{loginer.createtime}}</div>
    </div>
    <div class="infobox">
        <div class="item">
            <input type="text" bind-value="{{loginer.nickname}}" bind-input="{{'$Cache_nickname'}}" placeholder="请输入昵称" />
        </div>
        <div class="line"></div>

        <div class="item">
            <input type="text" bind-value="{{loginer.phone}}" bind-input="{{'$Cache_phone'}}" placeholder="请输入手机号" />
        </div>
        <div class="line"></div>
        <div class="item">
            <input type="text" bind-value="{{loginer.email}}" bind-input="{{'$Cache_email'}}" placeholder="请输入邮箱" />
        </div>
        <div class="line"></div>
        <div class="item">
            <select bind-input="{{'$Cache_sex'}}">
                <option>请选择</option>
                <option value="1" selected="{{loginer.sex==1}}">男</option>
                <option value="2" selected="{{loginer.sex==2}}">女</option>
            </select>
        </div>
        <div class="line"></div>
        <div class="item">
            <select class="city" event-change="{{'$Event.change_city_province'}}" bind-input="{{'$Cache_city_province'}}" name="province">
                {{#each $Cache_city_list}}
                <option bind-value="{{$Index}}">{{name}}</option>
                {{/each}}
            </select>
            <select class="city" event-change="{{'$Event.change_city_city'}}" bind-input="{{'$Cache_city_city'}}" name="city">
                {{#each $Cache_city_city_list}}
                <option bind-value="{{$Index}}">{{name}}</option>
                {{/each}}
            </select>
            {{#if $Cache_city_type}}
            <select class="city" name="area">
                {{#each $Cache_city_city_area_list}}
                <option>{{name}}</option>
                {{/each}}
            </select>
        </div>
    </div>

    <div class="btnitem">
        <button event-click="{{'$Event.unlock_change_info'}}">{{$Cache_unlock_change_info&&'取消'||'修改'}}</button>
        {{#if $Cache_unlock_change_info}}
        <button event-click="{{'$Event.save_change_info'}}">保存</button>
        {{/if}}
    </div>
</div>
